package com.pirux.tesis.dao;

import java.io.Serializable;
import java.util.List;

import com.pirux.tesis.persistence.exception.BussinessException;

public interface GenericDAO<T, ID extends Serializable> {

	T create() throws BussinessException;

	void saveOrUpdate(T entity) throws BussinessException;

	T get(ID id) throws BussinessException;

	void delete(ID id) throws BussinessException;

	List<T> findAll() throws BussinessException;

}